<%@ page contentType="text/html; charset=gb2312"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<html>
	<head>


		<title></title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link href="<%=request.getContextPath()%>/css/dhtmlxtree.css"
			rel="stylesheet" type="text/css">
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/dhtmlxcommon.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/dhtmlxtree.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript">
	
		function chec() {
		
			
		}
	
		var tree;
		function createTree(){
			tree=new dhtmlXTreeObject("tree","100%","100%",0);
            tree.setImagePath("<%=request.getContextPath()%>/images/treeImgs/");
            
            tree.loadXML("<%=request.getContextPath()%>/temp/Emp.xml");
            tree.setOnClickHandler(treeOnClick);
           
           
			document.getElementById("u_id").value=1;
			document.getElementById("searchForm").submit();
		}
		function treeOnClick(id){
			
			document.getElementById("u_id").value=id;
			document.getElementById("searchForm").submit();
		}
	</script>

	</head>

	<body onload="createTree();">


		<s:form id="searchForm" action="balance_add" target="searchIframe">

			<table border="0" width="500">
				<tr align="center">
					<td>
						<div id="tree" align="left"
							style="width: 500; height: 300px; background-color: #f5f5f5; border: 1px solid Silver; overflow-y: auto;">
						</div>
					</td>
				</tr>
				<input type="hidden" name="u_id" />
			</table>
		</s:form>

		<table align="center" cellpadding="0" cellspacing="0"
			width="100%">
			<tr>
				<td>
					<iframe name="searchIframe" id="searchIframe"
						src="web/zzjg/doctitle_list.jsp" width="100%" frameborder="0"
						height="100%" scrolling="no"></iframe>
				</td>
			</tr>
		</table>
	</body>
</html>
